package cn.stylefeng.guns.modular.order.service;

import cn.stylefeng.guns.base.pojo.page.LayuiPageInfo;
import cn.stylefeng.guns.modular.order.entity.OrderWeightBox;
import cn.stylefeng.guns.modular.order.model.params.OrderWeightBoxParam;
import cn.stylefeng.guns.modular.order.model.params.OrderWeightCheckParam;
import cn.stylefeng.guns.modular.order.model.result.OrderWeightBoxResult;
import cn.stylefeng.roses.core.reqres.response.ResponseData;
import com.baomidou.mybatisplus.extension.service.IService;
import org.springframework.web.multipart.MultipartFile;

import java.util.List;

/**
 * <p>
 * 订单包材重量 服务类
 * </p>
 *
 * @author zhangzh
 * @since 2024-05-29
 */
public interface OrderWeightBoxService extends IService<OrderWeightBox> {

    /**
     * 新增
     *
     * @author zhangzh
     * @Date 2024-05-29
     */
    void add(OrderWeightBoxParam param);

    /**
     * 删除
     *
     * @author zhangzh
     * @Date 2024-05-29
     */
    void delete(OrderWeightBoxParam param);

    /**
     * 更新
     *
     * @author zhangzh
     * @Date 2024-05-29
     */
    void update(OrderWeightBoxParam param);

    /**
     * 查询单条数据，Specification模式
     *
     * @author zhangzh
     * @Date 2024-05-29
     */
    OrderWeightBoxResult findBySpec(OrderWeightBoxParam param);

    /**
     * 查询列表，Specification模式
     *
     * @author zhangzh
     * @Date 2024-05-29
     */
    List<OrderWeightBoxResult> findListBySpec(OrderWeightBoxParam param);

    /**
     * 查询分页数据，Specification模式
     *
     * @author zhangzh
     * @Date 2024-05-29
     */
     LayuiPageInfo findPageBySpec(OrderWeightBoxParam param, String condition);

    /**
     * 数据导入
     * @param file
     * @param orderWeightBoxParam
     * @param data
     * @return
     * @throws Exception
     */
    ResponseData getExceldata(MultipartFile file, OrderWeightBoxParam orderWeightBoxParam, ResponseData data) throws Exception;



}
